#pragma once
#include "stdafx.h"
#include <WinSock2.h>
#include <string>
#include "MyArray.h";

using namespace std;

class Client
{
	MyArray<string>* lines;
	string name;
	//Thread Stuff
	
	static DWORD WINAPI ThreadFunc(LPVOID pvParam);
	int x;
	int y;
	void showGUI();
	void printUserList();
	protected:
        WSADATA wsaData;
        SOCKET mySocket;
        SOCKET myBackup;
        SOCKET acceptSocket;
        sockaddr_in myAddress;
		
	public:
		Client(string);
		~Client(void);
		bool SendData( char* );
        bool RecvData( char*, int );
		void ConnectToServer( const char *ipAddress, int port );
		void print(string s);
		void printUserList(string s);
};

